﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ServiceModel.Syndication;
using System.Xml;

namespace RssV_m_v.ViewModel
{
    public class SyndicationItemPerso :  SyndicationItem
    {
        private string url;
        public string Url
        {
            get
            { return this.url; }
            set
            { this.url = value; }
        }
        private string titre;
        public string Titre
        {
            get
            { return this.titre; }
            set
            { this.titre = value; }
        }

        public void image(OpenReadCompletedEventArgs e)
        {
            /*XmlReader flux = XmlReader.Create(e.Result);
            flux.ReadToFollowing("enclosure");
            flux.MoveToFirstAttribute();
            Url = flux.Value;*/
            Url = "yes c'est l'addresse de l'image";
        }
    }
}
